package com.jiuli.liping.dao;

import com.jiuli.liping.vo.*;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * Author zyl
 * Date  2020-03-14
 */
@Component
@Mapper
public interface ProductDao {

    public Product get(String id);

    public List<Product> findList(Product product);

    public List<Product> findAllList();

    public int insert(Product product);

    public int insertBatch(List<Product> products);

    public int update(Product product);

    public int delete(Product product);

    Product getByName(Product product);

    int getByProjectName(Product product);

    List<ClassificationBean> getClassification();

    List<Supplier> getSupplier(String status);

    int updateProduct(Product product);

    List<Product> getProductList();

    Product getProductInfo(Product product);

    //Product getProductInfoByNumber(Product product);

    Product getProductByProductNum(Product pr);

    List<Product> getProductByName(Product product);

    int updateProductByNumber(Product pr);

    int getRealProductNumber( String  productNumber );

    int getRealProductNumberx( String  productNumber );

    int getIceProductNumber( String  productNumber );



    void cutProductNumber(String  productNumber,String number );

    List<ProductNumber> backNumber(String  productNumber);

    void addNumber(String name ,String number);

    List<Product> getProjectByPid(Classification classification);

    List<Product> getProductListBySj();

    int updateAmount(Product product);

    int insertProductChange(Product product);

    String findSumAmount(String commodityNumber);

    List<Product> findProductList();

    int updateBatchProduct(List<Product> products);

    int getCountCommodity(String commodityNumber);

    List<Product> findProductListByNum(Product product);

    String getSumAmountByRk(ProductOrder order);

    String  getPurchasePrice(String commodityNumber);
}